package com.gxa.ehome.mapper;

import com.gxa.ehome.pojo.Category;
import com.gxa.ehome.pojo.SysUser;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
//@Component("ggl")
public interface SysUserMapper {
//  @Select(value = "select * from sysUser where id=#{id}")

    /**
     * 查询用户对象
     * @param id
     * @return
     */
    SysUser findById(Serializable id);
    void saveByParam(String jobNumber,String password);
    void save(SysUser sysUser);
    void upData(SysUser sysUser);
    void delete(Serializable id);
    void saveByMap(Map<String,String> map);
    void saveByParamaterMap(SysUser sysUser);
    List<SysUser>findAll();
    List<SysUser> findAllByPage(int page,int limit);

    List<SysUser> findAllByLike(String patten);
    void deleteBatch(List<Integer> List);
    Integer login(String jobNumber,String password);


}
